home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / VOTEKICK.ZIP / VOTEKICK.TXT
Text File  |  1997-03-14  |  4KB  |  108 lines

  1. Ok Kiddies its Daemon (From Newnet and LiquidLSD on Undernet & EFnet) 
  2. here bring you the first of many useful Add-Ons for mIRC 4.72 _ONLY_! 
  3. (Though you may be able to tweak them for other versions im sure as hell
  4.  not screwing with it!) To install it just add the stuff I tell you to
  5. where I tell you to add it.... simple enough? I hope so! Well see ya and
  6. look 4 me on NewNet at #RaveClub or #14teen
  7.  
  8. -------------------------
  9. Add this to your Commands list in your Events section:
  10.  
  11.  
  12. 1:*: {
  13.   if ($parm1 == yes) && (%set.vote == ON) && (%vote. [ $+ [ $address ] ] != taken) {
  14.     inc %vote.yes
  15.     .notice $nick Thank You for Voting 13YES
  16.     set %vote. $+ $address taken
  17.     set %info $timestamp $fulladdress voted 13YES
  18.     set %halt ON
  19.     goto end
  20.   }
  21.   if ($parm1 == no) && (%set.vote == ON) && (%vote. [ $+ [ $address ] ] != taken) {
  22.     inc %vote.no
  23.     .notice $nick Thank You for Voting 13NO
  24.     set %vote. $+ $address taken
  25.     set %info $timestamp $fulladdress voted 13NO
  26.     set %halt ON
  27.     goto end
  28.   }
  29.   if ($parm1 == yes) || ($parm1 == no) { halt }
  30.   else { set %info $timestamp  %chan $parm1  $parm2 request by $fulladdress }
  31.   :end
  32.   unset %info
  33.   if (%halt == ON) { unset %halt | halt }
  34. }
  35.  
  36. ---------------------------
  37. Add the Below to your Pop-Ups (The Nickname List one)
  38.  
  39.  
  40. Vote kick {
  41.   if (set.vote == ON) { aecho You are already conducting a vote | halt }
  42.   msg # Vote to Kick $nick off $chan :12 $1 $+ . /ctcp $me YES to vote to kick the user, /ctcp $me NO for them to Stay. Results in One Minute!!
  43.   set %vote.channel #
  44.   set %vote.nick $1
  45.   set %vote.reason The Kicking of4 $1
  46.   set %set.vote ON
  47.   set %vote.kick ON
  48.   set %vote.ctcp [ %set.ctcp ]
  49.   set %set.ctcp 10
  50.   .timer 1 70 result
  51. }
  52.  
  53. Vote Kick/Ban {
  54.   if (set.vote == ON) { aecho You are already conducting a vote | halt }
  55.   msg # Vote On the Kick/Ban of :12 $1 $+ . /ctcp $me YES to Vote Yes to Kick/Ban User, /ctcp $me NO for them to stay. Results in One Minute!!
  56.   set %vote.channel #
  57.   set %vote.nick $1
  58.   set %vote.reason The KickBanning of4 $1                                                  
  59.   set %set.vote ON
  60.   set %vote.kb ON
  61.   set %vote.ctcp [ %set.ctcp ]
  62.   set %set.ctcp 10
  63.   .timer 1 70 result
  64. }
  65.  
  66. --------------------------
  67. Add the Below to your Alisais:
  68.  
  69.  
  70. /result {
  71.   if (%set.vote != ON) { aecho No vote | halt }
  72.   if (%vote.yes == $null) { set %vote.yes 0 }
  73.   if (%vote.no == $Null) { set %vote.no 0 }
  74.   msg %vote.channel Results for vote on :12 %vote.reason
  75.   msg %vote.channel %vote.yes people voted 12YES %vote.no people voted 12NO
  76.   if (%vote.kick == ON) && (%vote.yes > %vote.no) { kick %vote.channel %vote.nick The people decided to kick you!}
  77.   elseif (%vote.kb == ON) && (%vote.yes > %vote.no) { ban -u60 %vote.channel %vote.nick 3 | kick %vote.channel %vote.nick The people decided to Kick/Ban You! (Unbanned in 60sec}
  78.   set %set.ctcp [ %vote.ctcp ]
  79.   unset %vote.*
  80.   set %set.vote OFF
  81. }
  82.  
  83. --------------------
  84. Credits:
  85.  
  86. Programmed By: Daemon <jwilk@iglou.com>
  87.  
  88. Inspirational Music: Chemical Brothers, KMFDM, Bush, Zoo Rave, Enigma, Beck,
  89. Fluke
  90.  
  91. Shout Outs: 2600 Mag, Kevin Mitnick, RaveRChiC, Phiber Optik, ChanServ,
  92. and all those IRCops EVERYWHERE!
  93.  
  94. My Web Page: http://members.iglou.com/jwilk
  95.  
  96. -----BEGIN PGP PUBLIC KEY BLOCK-----
  97. Version: 2.6.2
  98.  
  99. mQCNAzIc19oAAAEEAMWEgZIDMxl1l2qDOjNNu7aLpEEtnM/9gkWzB+SWwiNMOxvR
  100. ZAodrAfce1szkQnHJtwTNSiLrx/iY4FRZdWmqY+N/HEQGNEZquyGcgx0Pu4snex7
  101. EwQF0QSlXSQym1RlLENYnNpChBDaSfLTfDs7X0U7af4u6kj54cgNt2eE0T6hAAUR
  102. tB9CbGFrZSBXZWhsYWdlIDxqd2lsa0BpZ2xvdS5jb20+
  103. =kgVb
  104. -----END PGP PUBLIC KEY BLOCK-----
  105.  
  106. Catch Ya LaterZ,
  107.  
  108. Daemon**